class PSGameViewportClient extends GameViewportClient;

var MultiFont TransitionFont;
var Texture2D Background;
var LinearColor BackgroundColor;

function DrawTransition(Canvas Canvas)
{
	//switch(Outer.TransitionType)
	//{
	//	case TT_Loading:
	//		DrawImageTransitionMessage(Canvas,LoadingMessage);
	//		break;
	//	case TT_Saving:
	//		DrawTransitionMessage(Canvas,SavingMessage);
	//		break;
	//	case TT_Connecting:
	//		DrawTransitionMessage(Canvas,ConnectingMessage);
	//		break;
	//	case TT_Precaching:
	//		DrawTransitionMessage(Canvas,PrecachingMessage);
	//		break;
	//	case TT_Paused:
	//		DrawTransitionMessage(Canvas,PausedMessage);
	//		break;
	//}
}

function DrawImageTransitionMessage(Canvas Canvas,string Message)
{
	local float XL, YL;

	Canvas.Font = TransitionFont;
	Canvas.bCenter = false;

        // Draw background
	//Canvas.SetPos(0,0);
	//Canvas.DrawTile(Background, Canvas.ClipX, Canvas.ClipY, 0, 0, Background.SizeX, Background.SizeY, BackgroundColor);

	Canvas.StrLen( Message, XL, YL );
        // Draw text shadow
	Canvas.SetPos(0.5 * (Canvas.ClipX - XL) + 1, 0.5 * Canvas.ClipY - YL * 0.5 + 1);
	Canvas.SetDrawColor(0,0,0);
	Canvas.DrawText( Message, false );
        // Draw text
	Canvas.SetPos(0.5 * (Canvas.ClipX - XL), 0.5 * Canvas.ClipY - YL * 0.5);
	Canvas.SetDrawColor(0,255,0);
	Canvas.DrawText( Message, false );
}

DefaultProperties
{
	// TransitionFont=MultiFont'MyFonts.Textures.MyFont'
	//Background=Texture2D'MyStartupStuff.Textures.MyTransitionBackground'
	BackgroundColor=(R=0.0,G=0.0,B=0.0,A=0.0)
}
